package com.lazy.book.service.system;

import com.lazy.book.pojo.system.pojo.dto.common.SelectorQueryDTO;
import com.lazy.book.pojo.system.pojo.vo.common.SelectorVO;
import com.lazy.book.pojo.system.pojo.vo.systempfile.SysTempFileInfoVO;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

/**
 * @author lay
 * @since 2025-09-05
 */
public interface CommonService {

    List<SelectorVO> deptSelector(SelectorQueryDTO dto);

    List<SelectorVO> userSelector(SelectorQueryDTO dto);

    List<SelectorVO> roleSelector(SelectorQueryDTO dto);

    List<SelectorVO> postSelector(SelectorQueryDTO dto);

    List<SelectorVO> dictSelector(String typeCode);

    List<SelectorVO> dictSelectorByTypeName(String typeName);

    void downloadTemplate(String templateCode, HttpServletResponse response);

    SysTempFileInfoVO uploadTemplate(String templateCode);

}